Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Populate github owner/repo keys with default values from git remote #440

Merged
merged 2 commits into from
Mar 4, 2020

Conversation

alejandrohdezma
Copy link
Contributor

Why this change?

Most of the projects using this plugin use either Travis, Github Actions or other similar CIs. All these have in common that they set a git remote origin pointing to the original repository. We can extract that information from git to pre-populate the micrositeGithubOwner and micrositeGithubRepo.

What has been done in this PR?

Populate by default the micrositeGithubOwner and micrositeGithubRepo with the information extracted from calling git ls-remote --get-url origin.

Copy link
Contributor

@BenFradet BenFradet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@calvellido calvellido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great @alejandrohdezma!

For a wider reach, maybe we could update the docs mentioning this new behaviour?

https://47deg.github.io/sbt-microsites/docs/settings/

@alejandrohdezma
Copy link
Contributor Author

@calvellido 🤦 I intended to do it, but I totally forgot. I'll add during the day :) thanks!

@alejandrohdezma
Copy link
Contributor Author

@calvellido Done! f6cd7e1

Copy link
Contributor

@calvellido calvellido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing!! 🙌

@calvellido calvellido merged commit f446eba into master Mar 4, 2020
@calvellido calvellido deleted the default-github-values branch March 4, 2020 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants